//star
$(document).ready(function () {
    var stepW = 50;
    var description = new Array("非常差", "差", "一般", "好", "非常好");
    var stars = $("#star > li");
    var descriptionTemp;
    $("#showb").css("width", 0);
    stars.each(function (i) {
        $(stars[i]).click(function (e) {
            var n = i + 1;
            $("#showb").css({"width": stepW * n});
            descriptionTemp = description[i];
            $(this).find('a').blur();
            $("#score").val(n)
            return stopDefault(e);
            return descriptionTemp;
        });
    });
    stars.each(function (i) {
        $(stars[i]).hover(
            function () {
            	$(".description").attr("style","font-size:300%");
                $(".description").text(description[i]);
            },
            function () {
                if (descriptionTemp != null) {
                    $(".description").text("" + descriptionTemp);
                } else {
                    $(".description").text("");
                }
            }
        );
    });
});
function stopDefault(e) {
    if (e && e.preventDefault) {
        e.preventDefault();
    } else {
        window.event.returnValue = false;
    }
    return false;
};
